package com.financing.wap.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.financing.wap.common.SqlName;
import com.financing.wap.dao.IUserAgreeAgreementDao;
import com.financing.wap.dto.UserAgreeAgreementDTO;

@Repository("userAgreeAgreementDao")
@SuppressWarnings(value={"deprecation","unchecked"})
public class UserAgreeAgreementDaoImpl extends BaseDaoImpl<UserAgreeAgreementDTO, java.lang.Integer> implements IUserAgreeAgreementDao {

	@Override
	public int addUserAgreeAgreement(UserAgreeAgreementDTO dto) throws Exception {
		return (Integer) this.sqlMapClientTemplate.insert(SqlName.addUserAgreeAgreement, dto);
	}

	@Override
	public List<UserAgreeAgreementDTO> queryUserAgreeAgreement(UserAgreeAgreementDTO dto) throws Exception {
		return this.sqlMapClientTemplate.queryForList(SqlName.queryUserAgreeAgreement,dto);
	}

	@Override
	public int updateUserAgreeAgreement(UserAgreeAgreementDTO dto) throws Exception {
		return this.sqlMapClientTemplate.update(SqlName.updateUserAgreeAgreement, dto);
	}

	@Override
	public Class<UserAgreeAgreementDTO> getEntityClass() {
		return UserAgreeAgreementDTO.class;
	}


}
